-------------------------------------------------------------------------------
--  The Legend of Zelda : Oracle of Secrets
--  Copyright (C) 2010 Pixelua
--
--  This program is free software: you can redistribute it and/or modify
--  it under the terms of the GNU General Public License as published by
--  the Free Software Foundation, either version 3 of the License, or
--  (at your option) any later version.
--
--  This program is distributed in the hope that it will be useful,
--  but WITHOUT ANY WARRANTY; without even the implied warranty of
--  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--  GNU General Public License for more details.
--
--  You should have received a copy of the GNU General Public License
--  along with this program.  If not, see <http://www.gnu.org/licenses/>.
-------------------------------------------------------------------------------
ZE = {} -- ZeldaEvents

ZE.changeMap = function(map, casex, casey, dir)
	nextmap = map
	link.direction = dir
	
	save["save"]["x"] = casex
	save["save"]["y"] = casey
	
	save["save"]["map"] = tostring(map)
	save["save"]["dir"] = tostring(dir)
	
	--INI.save("saves/save.ini",save)
	misc.telepX = casex
	misc.telepY = casey
	mapchange = true
end

ZE.printText = function(text, pos)
	if pos == 1 then
		y = 32
	elseif pos == 2 then
		y = 128
	end
	
	new_inBoxText(SCREEN_DOWN, y, text, white)
end
